package day04;

public class Test {
	public static void main(String[] args) {
		for (int num=1;num<=9;num++){
			System.out.println(num+"*9="+num+9);
		}
		for (int num=1;num<=9;num+=2){
			System.out.println(num+"*9="+num+9);
		}
		for (int num=9;num>=1;num--){
			System.out.println(num+"*9="+num+9);
		}
		for (int times=0;times<5;times++){
			System.out.println("行动是成功的阶梯");
		}
		int sum = 0;
		for (int i=1;i<=1000;i++){
			sum += i;
		}
		System.out.println("累加和是"+sum);
	}
}
//                sum=0
//        i=1 true sum=1
//		i=2 true sum=1+2
//		i=3 true sum=1+2+3
//		i=4 true sum=1+2+3+4
//		i=99 true sum=1+2+3+4....+99
//        i=100 ture sum=1+2+3+4....+99+100


//times 0 true +1
//times 1 true +1
//times 2 true +1
//times 3 true +1
//times 4 true +1
//times 5 false 结束










